import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
  {
    path:'/',
    name:'login',
    component:()=>import('../views/Login')
  },
  {
    path: '/GetImg',
    name: 'getImg',
    component: () => import('../views/distribution_service/GetImg')
  },
  {
    path: '/Index',
    name: 'index',

    component: () => import('../views/distribution_service/DistributionServiceIndex'),
    children : [
      {
        path: '/FindTaskList',
        name: 'findtasklist',
        component : () => import('../views/distribution_service/FindTaskList')
      },
      {
        path: '/DistributeTaskList',
        name: 'distributetasklist',
        component : () => import('../views/distribution_service/DistributeTaskList')
      },
      {
        path: '/PrintTaskList',
        name: 'printTaskList',
        component : () => import('../views/distribution_service/PrintTaskList')
      }
    ]
  }

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
